package cn.kawa;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//申明是当前项目的启动类
@SpringBootApplication
//复合注解 扫描mapper接口的包-生成mapper代理对象-可以在service中使用注入
@MapperScan("cn.kawa.*.mapper")
@ServletComponentScan(value = {"cn.kawa.basic.listener"})
public class App {
    public static void main(String[] args) {
        //使用启动类去运行Spring程序
        SpringApplication.run(App.class,args);
    }
}
